<template>
  <div class="about">
    <van-nav-bar fixed placeholder v-if="path === 'about_my' || path === 'online'" :title="title" left-text="返回" left-arrow @click-left="onClickLeft" />
    <router-view @title="getTitle" />
  </div>
</template>

<script>
export default {
  name: 'About',
  data() {
    return {
      title: '关于我们',
      path: this.$route.meta.title
    }
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1)
    },
    getTitle(data) {
      this.title = data
    }
  }
}
</script>

<style>
.about p {
  margin: 0 7px;
}
</style>
